package com.nlx.notes.module.bean.dto.loan;

import com.nlx.notes.module.bean.BaseDTO;
import com.nlx.notes.module.bean.dto.PageBaseQueryDTO;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDate;

@Getter
@Setter
@ToString
public class RepayDetailSaveDTO extends BaseDTO {


    /**
     * 借款概览id
     */
    private Long loanSummaryId;

    /**
     * 借款人
     */
    private Long  borrowerId;

    @NotNull(message = "请选择换狂账户")
    private Long accountId;

    /**
     * 还款金额
     */
    @NotEmpty(message = "请填写还款金额")
    private String repayAmount;

    /**
     * 还款金额，单位分
     */
    private Integer repayAmountInt;

    /**
     * 还款时间
     */
    private LocalDate repayDate;

    /**
     * 借款状态
     */
    private String loanStatus;

    private boolean saveFlow = true;

    private Long flowId;

}
